TestCase
(
	'org.puremvc.js.patterns.mediator.MediatorTest'
	
,	{
		testNameAccessor: function ()
		{
			var mediator= new Mediator();
			assertSame('The mediators name was implicitly set from its static NAME property', Mediator.NAME, mediator.getMediatorName());
		}
		
	,	testViewAccessor: function ()
		{
			var view= 
			{
				toString: function ()
				{
					return '[object ViewComponent]'
				}
			}
			,	mediator= new Mediator(Mediator.NAME, view)
			
			assertSame('The viewComponent was retrieved via getViewComponent', view, mediator.getViewComponent());
		}
		
	,	testNotifierInitialization: function ()
		{
			assertSame('The mediators facade reference was initialized', Facade.getInstance(), new Mediator().facade);
		}
	}
)
